import { defineConfig } from "vite";
import react from '@vitejs/plugin-react'
import path from 'path'

export default defineConfig({
  plugins: [
    react()
  ],
  resolve: {
    alias: {
      react: path.posix.resolve("src/react"),// 遇到react 目录 就去找 src/react src是相对于本文件当前目录
      "react-dom": path.posix.resolve("src/react-dom"), // 遇到 文件
      "react-reconciler": path.posix.resolve("src/react-reconciler"),
      scheduler: path.posix.resolve("src/scheduler"),
      shared: path.posix.resolve("src/shared"),

    }
  }
})